package com.itheima.java;

public class  Test5 {
    public static void main(String[] args) {
        System.out.println(getFactoriolRecursion(5));
    }

    public static int getFactoriolRecursion(int num) {
        if (num == 1) {
            return 1;
        }
        return num * getFactoriolRecursion(num - 1);
    }

}
